#!/usr/bin/env python

import Image, ImageFilter
import sys

fname = sys.argv[1]
assert fname.endswith(".jpg"), "expecting a .jpg file as argument"

img = Image.open(fname)

for i in range(50):
    img = img.filter(ImageFilter.BLUR)
    print "saving", fname[:-4]+"-%02i.jpg"%i
    img.save(fname[:-4]+"-%02i.jpg"%i)

